package oo.Day04.nigthText2;

public class Text {
    public static void main(String[] args) {

        person[] ps = new person[5];
        ps[0] = new Student("zhangsan",45,"dahiuh","dauh");

        for (int i=0;i<ps.length;i++){
            System.out.println(ps[i].name);
            ps[i].sayHi();
        }
    }
}
